package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

/**
 * 店铺绑定记录业务对象 erp_shop_bind_record
 *
 * @author erp
 * @date 2024-05-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpShopBindRecordBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺授权表id
     */
    @NotNull(message = "店铺授权表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 店铺账号（cn码）
     */
    @NotBlank(message = "店铺账号（cn码）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeUserName;

    /**
     * 绑定用户id
     */
    @NotBlank(message = "绑定用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userId;

    /**
     * 上级代理id
     */
    private Long parentAgentId;

    /**
     * 上级公司id
     */
    private Long parentBranchId;

    /**
     * 乐观锁
     */
    private String revision;


}
